
/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  LogNoiseCleanConfigFileSaveServiceImpl.java                                      
 *  File Contents Outline : 日志噪声清洗规则设置
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package cn.edu.thu.log.web.service.impl;

import cn.edu.thu.log.clean.CleanConfigSave;
import cn.edu.thu.log.clean.NoiseConfigSave;
import cn.edu.thu.log.web.service.LogNoiseCleanConfigFileSaveService;


public class LogNoiseCleanConfigFileSaveServiceImpl implements LogNoiseCleanConfigFileSaveService{
   private static LogNoiseCleanConfigFileSaveService singleton = null;  
   
   public synchronized static LogNoiseCleanConfigFileSaveService instance() {
        if (singleton == null) {
            singleton = new LogNoiseCleanConfigFileSaveServiceImpl();
        }
        return singleton;
    }
         
    @Override
   public void writeCleanConfig(String filename,String treexml) {
//        System.out.println("In the logcleanconfigfileSaveService!");
       CleanConfigSave configcleansave=new CleanConfigSave();      
       configcleansave.writeCleanConfig(filename,treexml);
   }

    @Override
    public void writeNoiseConfig(String filename, String treexml) {
       NoiseConfigSave confignoisesave=new NoiseConfigSave();      
       confignoisesave.writeNoiseConfig(filename,treexml);       
    }  
}
